<template>
  <div class="brand-wrapper">
    <div class="top">
      <div class="title-wrapper">
        <div class="title">商品分类</div>
      </div>
      <el-button type="primary" @click.native="add">添加</el-button>
    </div>
    <div class="content">
      <table-list ref="tableList" />
    </div>
  </div>
</template>
<script>
import TableList from './brand/tableList'

export default {
  components: {
    TableList
  },
  methods: {
    add() {
      this.$refs.tableList.add()
    }
  }
}
</script>
<style lang="scss" scoped>
@import "@/styles/el-button.scss";
.brand-wrapper {
  padding: 0 20px;
  box-sizing: border-box;
  min-height: 115vh;
  .top {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    .title-wrapper {
      display: flex;
      align-content: center;
      .title {
        height: 44px;
        line-height: 44px;
        color: rgba(68, 68, 68, 1);
        font-size: 18px;
        font-family: Roboto;
        font-weight: bold;
        cursor: pointer;
      }
    }
  }
}
</style>
